OSASINFRA-3133 - OpenStack support#195
Conversation
|
Skipping CI for Draft Pull Request. |
2add629 to
3c9d625
Compare
pkg/machineproviders/providers/openshift/machine/v1beta1/failuredomain/failuredomain.go
Outdated
Show resolved
Hide resolved
41d0792 to
ca2234e
Compare
odvarkadaniel
left a comment
There was a problem hiding this comment.
Generally, the code LGTM. I would appreciate that someone else would look at this after KubeCon.
cc/ @JoelSpeed @damdo
pkg/machineproviders/providers/openshift/machine/v1beta1/failuredomain/failuredomain.go
Outdated
Show resolved
Hide resolved
pkg/controllers/controlplanemachinesetgenerator/controller_test.go
Outdated
Show resolved
Hide resolved
pkg/controllers/controlplanemachinesetgenerator/controller_test.go
Outdated
Show resolved
Hide resolved
pkg/machineproviders/providers/openshift/machine/v1beta1/failuredomain/failuredomain.go
Outdated
Show resolved
Hide resolved
|
/test unit |
|
/test e2e-azure-operator e2e-aws-ovn-serial e2e-aws-ovn |
|
|
||
| // buildAWSFailureDomains builds an AWS flavored FailureDomains for the ControlPlaneMachineSet. | ||
| func buildAWSFailureDomains(failureDomains *failuredomain.Set) machinev1.FailureDomains { | ||
| func buildAWSFailureDomains(failureDomains *failuredomain.Set) (machinev1.FailureDomains, error) { //nolint:unparam |
There was a problem hiding this comment.
note for reviewers: in a comment with Damiano, we want consistent buildFD functions for the providers, so since OpenStack can return an actual error, we let all builders to return an error too (even if the error is nil for now).
|
/test unit |
|
I've just spotted an issue when testing this again, but I'm not sure if it's only in my environment or what: The Provider Spec shouldn't have the |
I am interested what you think should be in the providerSpec’s availabilityZone. The empty string? |
I might clarify what I said but I'm talking about the providerSpec in the CPMS: It should not be there, AFIK. |
Within the CPMS providerSpec, anything that's meant to be set by the failure domain, should be cleared, so yes, empty string |
|
/test e2e-openstack-operator |
|
@pierreprinetti much better with the new installer patchset: @damdo @JoelSpeed ready for review when you have time. Nothing changed much since your last reviews, except the last 2 commits I would say, which are small enough to be quickly reviewed. |
Co-Authored-By: Emilien Macchi <emilien@redhat.com> Co-Authored-By: Pierre Prinetti <pierreprinetti@redhat.com>
If `OPENSTACK_CONTROLPLANE_FLAVOR_ALTERNATE` is found in the environment variables, we'll use that flavor when running the control plane verticale scale tests. Otherwise, roll back on the tags.
| ```yaml | ||
| - availabilityZone: "<nova availability zone>" | ||
| rootVolume: | ||
| availabilityZone: "<cinder availability zone>" |
There was a problem hiding this comment.
Didn't we add another field to the AZ?
There was a problem hiding this comment.
if you're talking about the volume type, it'll be handled separately via #217
|
|
||
| #### Configuring a control plane machine set on OpenStack | ||
|
|
||
| Two fields are supported for now: `availabilityZone` (instance AZ) and `rootVolume.availabilityZone` (root volume AZ). |
There was a problem hiding this comment.
Does this need updating for the third field that we added?
There was a problem hiding this comment.
volume type will be handled separately via #217
|
Apart from the nit about the errors, I think this is good to go, thanks for working with us on this 😄 |
|
/approve |
pierreprinetti
left a comment
There was a problem hiding this comment.
This code seems to be behaving conform to the spec. I believe that there is no reason to further defer testing in vivo.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed, pierreprinetti The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
/retest-required |
damdo
left a comment
There was a problem hiding this comment.
LGTM
Thanks for all you efforts!
|
@EmilienM: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/retest-required |
OpenStack support in CPMS.